A trust deed is a legal document that outlines an agreement between a borrower and a lender. It is used in real estate transactions to secure a loan by granting the lender a legal claim or "lien" on the property until the loan is fully paid off. This ensures that the lender has a way to recoup their money if the borrower fails to repay the loan.